package com.linkwedo.saas.member;

import org.apache.commons.lang.RandomStringUtils;

import com.linkwedo.saas.domain.member.ResetPasswordVerify;

public class ResetPasswordService {

	public String persistVerify(String email) {
		String verifyCode = RandomStringUtils.randomAlphanumeric(15);
		ResetPasswordVerify verify = new ResetPasswordVerify();
		verify.setEmail(email);
		verify.setVerifyCode(verifyCode);
		resetPasswordDao.persist(verify);
		return verifyCode;
	}
	
	private ResetPasswordDao resetPasswordDao;

	public ResetPasswordDao getResetPasswordDao() {
		return resetPasswordDao;
	}

	public void setResetPasswordDao(ResetPasswordDao resetPasswordDao) {
		this.resetPasswordDao = resetPasswordDao;
	}


}
